package cfca.seal.front.service.ws.bean;

import cfca.seal.util.StringUtil;

public class NameSealInfoBean
{
  private String sealPerson;
  private String sealOrg;
  private String sealName;
  private String sealCode;
  private String sealPassword;
  private String imageShape;
  private String imageWidth;
  private String imageHeight;
  private String color;
  private String fontSize;
  private String orgCode;

  public String getSealPerson()
  {
    return this.sealPerson;
  }

  public void setSealPerson(String sealPerson) {
    this.sealPerson = sealPerson;
  }

  public String getSealOrg() {
    return this.sealOrg;
  }

  public void setSealOrg(String sealOrg) {
    this.sealOrg = sealOrg;
  }

  public String getSealName() {
    return this.sealName;
  }

  public void setSealName(String sealName) {
    this.sealName = sealName;
  }

  public String getSealCode() {
    return this.sealCode;
  }

  public void setSealCode(String sealCode) {
    this.sealCode = sealCode;
  }

  public String getSealPassword() {
    return this.sealPassword;
  }

  public void setSealPassword(String sealPassword) {
    this.sealPassword = sealPassword;
  }

  public String getOrgCode() {
    return this.orgCode;
  }

  public void setOrgCode(String orgCode) {
    this.orgCode = orgCode;
  }

  public String getImageShape() {
    return this.imageShape;
  }

  public void setImageShape(String imageShape) {
    this.imageShape = imageShape;
  }

  public String getImageWidth() {
    return this.imageWidth;
  }

  public void setImageWidth(String imageWidth) {
    this.imageWidth = imageWidth;
  }

  public String getImageHeight() {
    return this.imageHeight;
  }

  public void setImageHeight(String imageHeight) {
    this.imageHeight = imageHeight;
  }

  public String getColor() {
    return this.color;
  }

  public void setColor(String color) {
    this.color = color;
  }

  public String getFontSize() {
    return this.fontSize;
  }

  public void setFontSize(String fontSize) {
    this.fontSize = fontSize;
  }

  public NameSealInfoBean()
  {
  }

  public NameSealInfoBean(String sealInfoXML) {
    this.sealPerson = StringUtil.getNodeText(sealInfoXML, "SealPerson");
    this.sealOrg = StringUtil.getNodeText(sealInfoXML, "SealOrg");
    this.sealCode = StringUtil.getNodeText(sealInfoXML, "SealCode");
    this.sealName = StringUtil.getNodeText(sealInfoXML, "SealName");
    this.sealPassword = StringUtil.getNodeText(sealInfoXML, "SealPassword");
    this.imageShape = StringUtil.getNodeText(sealInfoXML, "ImageShape");
    this.imageWidth = StringUtil.getNodeText(sealInfoXML, "ImageWidth");
    this.imageWidth = (StringUtil.isEmpty(this.imageWidth) ? "100" : this.imageWidth);
    this.imageHeight = StringUtil.getNodeText(sealInfoXML, "ImageHeight");
    this.imageHeight = (StringUtil.isEmpty(this.imageHeight) ? "50" : "1".equals(this.imageShape) ? "100" : this.imageHeight);
    this.color = StringUtil.getNodeText(sealInfoXML, "Color");
    this.color = (StringUtil.isEmpty(this.color) ? "FF0000" : this.color);
    this.fontSize = StringUtil.getNodeText(sealInfoXML, "FontSize");
    this.fontSize = (StringUtil.isEmpty(this.fontSize) ? "50" : this.fontSize);
    this.orgCode = StringUtil.getNodeText(sealInfoXML, "OrgCode");
  }
}